package com.jbinfo.qingcaowan.wx;

import java.io.Serializable;

public class WxInfo implements Serializable{

	private static final long serialVersionUID = -4866564071482362103L;
	
	private String grant_type; //  	获取access_token填写client_credential 
	private String appid;  // 第三方用户唯一凭证 
	private String secret;   // 第三方用户唯一凭证密钥，即appsecret 
	private String access_token; // 获取到的凭证 
	private String expires_in; // 凭证有效时间，单位：秒 
	private String errcode;  // 错误码
	private String errmsg; // 错误信息
	private String redirect_uri; // 授权后重定向的回调链接地址，请使用urlencode对链接进行处理 
	private String response_type; // 返回类型，此时固定为：code 
	private String scope; // 应用授权作用域
	private String state; // 重定向后会带上state参数，企业可以填写a-zA-Z0-9的参数值，长度不可超过128个字节 
	private String userId; // 成员UserID
	private String deviceId; // 手机设备号(由微信在安装时随机生成，删除重装会改变，升级不受影响) 
	private String openId; // 非企业成员的标识，对当前企业号唯一 
	private String code; // 用户同意授权后，重定向返回code参数
	private String unionid; // 用户统一标识。针对一个微信开放平台帐号下的应用，同一用户的unionid是唯一的。
	private String refresh_token; // 用户刷新access_token 
	
	public String getGrant_type() {
		return grant_type;
	}
	public void setGrant_type(String grant_type) {
		this.grant_type = grant_type;
	}
	public String getAppid() {
		return appid;
	}
	public void setAppid(String appid) {
		this.appid = appid;
	}
	public String getSecret() {
		return secret;
	}
	public void setSecret(String secret) {
		this.secret = secret;
	}
	public String getAccess_token() {
		return access_token;
	}
	public void setAccess_token(String access_token) {
		this.access_token = access_token;
	}
	public String getExpires_in() {
		return expires_in;
	}
	public void setExpires_in(String expires_in) {
		this.expires_in = expires_in;
	}
	public String getErrcode() {
		return errcode;
	}
	public void setErrcode(String errcode) {
		this.errcode = errcode;
	}
	public String getErrmsg() {
		return errmsg;
	}
	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}
	public String getRedirect_uri() {
		return redirect_uri;
	}
	public void setRedirect_uri(String redirect_uri) {
		this.redirect_uri = redirect_uri;
	}
	public String getResponse_type() {
		return response_type;
	}
	public void setResponse_type(String response_type) {
		this.response_type = response_type;
	}
	public String getScope() {
		return scope;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getDeviceId() {
		return deviceId;
	}
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
	public String getUnionid() {
		return unionid;
	}
	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	public String getRefresh_token() {
		return refresh_token;
	}
	public void setRefresh_token(String refresh_token) {
		this.refresh_token = refresh_token;
	}
	
	@Override
	public String toString() {
		return "WxInfo [grant_type=" + grant_type + ", appid=" + appid + ", secret=" + secret + ", access_token="
				+ access_token + ", expires_in=" + expires_in + ", errcode=" + errcode + ", errmsg=" + errmsg
				+ ", redirect_uri=" + redirect_uri + ", response_type=" + response_type + ", scope=" + scope
				+ ", state=" + state + ", userId=" + userId + ", deviceId=" + deviceId + ", openId=" + openId
				+ ", code=" + code + ", unionid=" + unionid + ", refresh_token=" + refresh_token + "]";
	}
	
	
}
